![]() ![]() |
4.3:H304002 Identify the language of the text.Improper designIn the HTML label, there was no lang character being setup, therefore one do not know the Web site natural language. Improper design:
<HTML>
<HEAD>
<TITLE>Taiwan President Web site</TITLE>
</HEAD>
<BODY>Web content</BODY>
</HTML>
End of example Proper demonstrationIn the HTML label, set the lang character to ˇ¨zh-TWˇ¨, the browser will know by itself that the natural language used in the Web site is traditional Chinese. Proper example:
<HTML lang="zh-TW">
<HEAD>
<TITLE>Taiwan President Web site</TITLE>
</HEAD>
<BODY>Web content</BODY>
</HTML>
End of example |